
require('../config/mongodb')()

var vacationModel = require('../models/vacationModel')

var fs = require('fs')

var str = fs.readFileSync('../db/vacation.json')

var arr = JSON.parse(str)

arr.forEach(element => {
    new vacationModel(element).save(function(err,item){

        console.log(item);
    });
});
